<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<c:choose>
<c:when test="${not empty dataList}">
	<c:forEach items="${dataList}" var="coupon"  varStatus="status">
	<c:choose>
	<c:when test="${coupon.couponState==2}">
		<div class="dui">
			<div class="dui_top">
				<div class="dui_top_1"><h1></h1><p>${coupon.couponName}</P> <h2></h2></div>
				<span>${coupon.couponNo}</span>
				<div class="dui_bottom">
					<p>到期时间:<fmt:formatDate value="${coupon.expirationTime}" pattern="yyyy-MM-dd"/></p>
					<span>可使用</span>
				</div>
			</div>
		</div>
	</c:when>
	
	<c:when test="${coupon.couponState==3}">
		<div class="dui_guoqi">
			<div class="dui_top_guoqi">
				<div class="dui_top_1_guoqi"><h1></h1><p>${coupon.couponName}</P> <h2></h2></div>
				<span>${coupon.couponNo}</span>
				<div class="dui_bottom_guoqi">
					<p>到期时间:<fmt:formatDate value="${coupon.expirationTime}" pattern="yyyy-MM-dd"/></p>
					<span>已使用</span>
				</div>
			</div>
		</div>
	</c:when>
	
	<c:when test="${coupon.couponState==4}">
		<div class="dui_guoqi">
			<div class="dui_top_guoqi">
				<div class="dui_top_1_guoqi"><h1></h1><p>${coupon.couponName}</P> <h2></h2></div>
				<span>${coupon.couponNo}</span>
				<div class="dui_bottom_guoqi">
					<p>到期时间:<fmt:formatDate value="${coupon.expirationTime}" pattern="yyyy-MM-dd"/></p>
					<span>已过期</span>
				</div>
			</div>
		</div>
	</c:when>
	</c:choose>
	</c:forEach>
	<div id="coupon_loading_more_div">
		<input type="hidden" id="coupon_pageNo" value="${paramMap.pageNo}">
		<input type="hidden" id="coupon_pageCount" value="${paramMap.pageCount}">
		<c:if test="${paramMap.pageNo<paramMap.pageCount}">
		<a id="coupon_loading_more" onclick="couponLoadMore()" class="bottom1">点击加载更多</a>
		</c:if>
	</div>
</c:when>
<c:otherwise>
			你还没有券码，赶快邀请好友得券
	<div class="querenbuttom" onclick="javascript:toInvitaion()">邀请得券</div>
</c:otherwise>
</c:choose>